<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<jsp:useBean id="login" class="params.Login" />
<jsp:setProperty property="*" name="login"/>


<%@page import="params.Login"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<%!
	private boolean authenticate(Login l){
		if(l.getUsername().equals("l") && l.getPassword().equals("a")){
			return true;
		}
		else{
			return false;
		}
	}
	%>

	<%
	if(this.authenticate(login)){
		out.print("autentificat");		
	}
	else{
		out.print("neautentificat");		
	}
	out.println(login.getUsername());
	%>

</body>
</html>